package com.gxa.mapper;

import com.gxa.param.MyTableParam;
import com.gxa.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface customerMapper {
    //查找客户价值列表
    List<Customer>  findValueAll(@Param("param") MyTableParam param);
    //按照ID寻找客户价值列表
    Value findvalueByID(@Param("valueId") Integer valueId);
    //按照ID寻找客户类型
    Type findtypeByID(@Param("typeId") Integer typeId);
    //按照ID寻找客户满意度列表
    Satisfaction findsatisByID(@Param("satisfactionId") Integer satisfactionId);
    //查找客户满意度列表
    List<Customer>  findSatisfactionAll(@Param("param") MyTableParam param);
    //查找全部客户类型
    List<Type> findtypeAll();
    //根据ID查找订单
    List<OrderSelect> findBycustID(@Param("customerId") Integer customerId);
//删除
    void deleteOneById(Integer id);
//    根据客户ID查找客户信息
    Customer findbycustId(Integer customerId);
    //添加
    void add(@Param("customer")Customer customer);
    //通过ID查找
    Customer selectById(Integer customerId);
//    更新
void update(@Param("customer") Customer customer);
    Customer findByPk(@Param("id") Integer id);

    List<Customer> findAll(@Param("param") MyTableParam param);

    void deleteAll(@Param("ids") String[] ids);

    void save(@Param("customer") Customer customer);

    void deleteCuOneById(Integer id);
    Customer findCuByPk(@Param("id") Integer id);
    void upCudate(@Param("customer") Customer customer);


}
